DefaultLocalServiceWrapper

class DefaultLocalServiceWrapper(service: CBMutableService) : LocalServiceWrapper

Constructors

Link copied to clipboard
constructor(service: CBMutableService)
constructor(uuid: UUID, type: Service.Type)

Properties

Link copied to clipboard
open override val identity: AttributeIdentity

Identity used to correlate this service with incoming peripheral-manager callbacks.

Link copied to clipboard
open override val uuid: UUID

The UUID of the service

Functions

Link copied to clipboard
open override fun addCharacteristic(characteristic: LocalCharacteristicWrapper)

Adds a LocalCharacteristicWrapper to the service

Link copied to clipboard
open override fun addIncludedService(service: LocalServiceWrapper)

Adds an included LocalServiceWrapper to the service

Link copied to clipboard
open override fun addTo(serverWrapper: KalugaBluetoothServerWrapper)

Adds the service to a KalugaBluetoothServerWrapper

Link copied to clipboard
open override fun addToParent(parent: CBMutableService)

Adds the service to a parent CBMutableService as an included service

Link copied to clipboard
open override fun removeFrom(serverWrapper: KalugaBluetoothServerWrapper)

Removes the service from a KalugaBluetoothServerWrapper